package cn.fl.capital.service.impl;

import cmm.comm.facade.framework.api.ISysDictionaryApiService;
import cmm.mid.core.framework.page.KeyValueVO;
import cmm.mid.core.framework.page.Pager;
import cmm.user.facade.system.api.ISysOrgApiService;
import cmm.user.facade.system.dto.SysOrgDTO;
import cn.cmm.base.framework.exception.BaseException;
import cn.cmm.base.framework.utils.BaseLogUtils;
import cn.cmm.base.framework.utils.CollectionUtils;
import cn.cmm.base.framework.utils.DateUtils;
import cn.cmm.base.framework.utils.StringUtils;
import cn.fl.capital.condition.CapOverdueInfoQueryCondition;
import cn.fl.capital.constant.CapitalConstant;
import cn.fl.capital.dto.CapOverdueInfoDTO;
import cn.fl.capital.service.ICapOverdueInfoApiService;
import cn.fl.capital.service.ICapOverdueInfoService;
import cn.fl.capital.service.IProfitAndLossApiService;
import cn.fl.capital.service.IProfitAndLossService;
import cn.fl.capital.transform.CapOverdueInfoVOTransform;
import cn.fl.capital.transform.ProfitAndLossVOTransform;
import cn.fl.capital.vo.CapOverdueInfoVO;
import cn.fl.capital.vo.ProfitAndLossVO;
import cn.fl.framework.base.context.CurrentThreadContext;
import cn.fl.framework.constant.DictionaryConstant;
import cn.fl.project.condition.PrjBscInfoQueryCondition;
import cn.fl.project.condition.PrjPrdDtlQueryCondition;
import cn.fl.project.constant.PrjPrdDtlConstant;
import cn.fl.project.dto.PrjBscInfoDTO;
import cn.fl.project.dto.PrjPrdDtlDTO;
import cn.fl.project.service.IProjectApiService;
import cn.fl.risk.condition.RskAppoRecQueryCondition;
import cn.fl.risk.dto.RskAppoRecDTO;
import cn.fl.risk.service.IRskAppoRecApiService;
import fl.customer.facade.customer.api.ICustomerQueryApiService;
import fl.customer.facade.customer.dto.CstContactInfoDTO;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.*;

/**
 * @Description: 还款情况(财务) 计算损益
 * 业务层方法名称前缀：
 * 新增：add*
 * 删除：remove*
 * 修改：modify*
 * 批量：batch*
 * 查询对象：select* get*
 * 查询集合：search*
 */
@Service
public class ProfitAndLossServiceImpl implements IProfitAndLossService {

    /**
     * 日志
     */
    private static final Logger logger = LoggerFactory.getLogger(ProfitAndLossServiceImpl.class);

    @Autowired
    private IProfitAndLossApiService profitAndLossApiService;

    /**
     * 获取罚息和损益
     * @param paySchId 支付表id(PRJ_PRD_PAY_SCH_M表id)
     * @return
     * @throws BaseException
     */
    @Override
    public ProfitAndLossVO getAmt(Long paySchId) throws BaseException {
        return ProfitAndLossVOTransform.toVO(this.profitAndLossApiService.getAmt(paySchId));
    }


}
